<template>
    <div>
        <div class="blog-header">
            <div class="nav">
                <div class="logo">
                    <img src="@/assets/logo.png" alt="">
                </div>
                <div class="link">
                    <router-link to="/home">首页</router-link>
                    <router-link to="/article">文章</router-link>
                    <router-link to="/conclude">归档</router-link>
                    <router-link to="/about">关于</router-link>
                </div>
            </div>
            <div class="control">
                <el-input :prefix-icon="Search" v-model="inputSearch" style="width: 240px" placeholder="搜索文章" />
                <div class="user">
                    <router-link class="btn active" to="/login">登录</router-link>
                    <router-link class="btn " to="/register">注册</router-link>
                </div>
            </div>
        </div>
        <div class="box"></div>
    </div>
</template>

<script setup>
import { Search } from '@element-plus/icons-vue'
import { ref } from 'vue'

const inputSearch = ref('')

</script>

<style lang="less" scoped>
.blog-header{
    display: flex;
    height: 70px;
    justify-content: space-between;
    padding: 0 104px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    background-color: #fff;
    z-index: 100;
    .nav{
        display: flex;
        align-items: center;
        .logo{
            width: 120px;
            img{
                width: 60px;

            }
        }
        .link{
            margin-left: 32px;
            a{
                font-size: 16px;
                color: #374151;
                margin-right: 24px;
                
            }
        }
    }
    .control{
        display: flex;
        align-items: center;
        :deep(.el-input__wrapper){
            border-radius: 8px;
            box-shadow: 0 0 0 1px #6b7280;
        }
    }
    .user{
        .btn{
            display: inline-block;
            width: 64px;
            height: 40px;
            background-color: #E5E7EB;
            text-align: center;
            line-height: 40px;
            border-radius: 8px;
            color: #374151;
            margin-left: 16px;
            &.active{
                background-color: #8E6FF7;
                color:#fff;
            }
        }
    }
}
.box{
    height: 70px;
}


</style>